/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 删除停车明细 GET /scenic/parkingDetail/deleteParkingDetail */
export async function scenicParkingDetailDeleteParkingDetailUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicParkingDetailDeleteParkingDetailUsingGetParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingboolean>(
    '/scenic/parkingDetail/deleteParkingDetail',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 停车明细详情 依据id查询停车明细详情 GET /scenic/parkingDetail/getParkingDetail */
export async function scenicParkingDetailGetParkingDetailUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.scenicParkingDetailGetParkingDetailUsingGetParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingtingchemingxiliebiaoshitu>(
    '/scenic/parkingDetail/getParkingDetail',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 分页查询停车明细 POST /scenic/parkingDetail/pageParkingDetail */
export async function scenicParkingDetailPageParkingDetailUsingPost({
  body,
  options,
}: {
  body: API.ParkingDetailQueryBo9899b67706b44b80A90380eec645e6df;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyingPageDataVotingchemingxiliebiaoshitu>(
    '/scenic/parkingDetail/pageParkingDetail',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 保存停车明细 如需修改则传递id POST /scenic/parkingDetail/saveParkingDetail */
export async function scenicParkingDetailSaveParkingDetailUsingPost({
  body,
  options,
}: {
  body: API.ParkingDetailSaveBo2a155334C4924b76Bcb0Ae8af2a86622;
  options?: { [key: string]: unknown };
}) {
  return request<API.xiangyinglong>('/scenic/parkingDetail/saveParkingDetail', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
